package com.springboot.springbootlogindemo.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 点赞表，用于记录每一条点赞记录
 */
@Data
@TableName("user_likes")
public class UserLikes implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 点赞记录id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 点赞对象id
     */
    @TableField("info_id")
    private Long infoId;


    /**
     * 点赞用户id
     */
    @TableField("like_user_id")
    private Long likeUserId;

    /**
     * 点赞状态 0 取消 1 点赞
     */
    @TableField("status")
    private Integer status;

    @TableField("create_time")
    private LocalDateTime createTime;

    @TableField("update_time")
    private LocalDateTime updateTime;


}